import request from '@/utils/request';

export async function getDictList(params) {
  return request(`/mgrApi/mdm/nmDict/queryDictItemsByCodes`, {
    method: 'POST',
    body: [...params],
  });
}
export async function getCorpList(params) {
  return request(`/mgrApi/baseApi/baseUser/queryCorpList`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function getBusiParam(params) {
  return request(`/mgrApi/busiParamMGR/queryBusiParam`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function getChildList(params) {
  return request(`/mgrApi/org/listOrgById`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function saveBusiParam(params) {
  return request(`/mgrApi/busiParamMGR/saveBusiParam`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
